package com.pw.lit.service.impl;

import com.pw.lit.bean.Emaillogin;
import com.pw.lit.bean.EmailloginExample;
import com.pw.lit.mapper.EmailloginMapper;
import com.pw.lit.service.EmailloginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("emailloginService")
public class EmailloginServiceImpl implements EmailloginService {

    @Autowired
    private EmailloginMapper emailloginMapper;

    @Override
    public int countByExample(EmailloginExample example) {
        return emailloginMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(EmailloginExample example) {
        return emailloginMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String email) {
        return emailloginMapper.deleteByPrimaryKey(email);
    }

    @Override
    public int insert(Emaillogin record) {
        return emailloginMapper.insert(record);
    }

    @Override
    public int insertSelective(Emaillogin record) {
        return emailloginMapper.insertSelective(record);
    }

    @Override
    public List<Emaillogin> selectByExample(EmailloginExample example) {
        return emailloginMapper.selectByExample(example);
    }

    @Override
    public Emaillogin selectByPrimaryKey(String email) {

        return emailloginMapper.selectByPrimaryKey(email);
    }

    @Override
    public int updateByExampleSelective(Emaillogin record, EmailloginExample example) {
        return emailloginMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Emaillogin record, EmailloginExample example) {
        return emailloginMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Emaillogin record) {
        return emailloginMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Emaillogin record) {
        return emailloginMapper.updateByPrimaryKey(record);
    }
}